package com.fastloan.mgt.verify.model.bankcard;

/**
 * 银行卡验证入参
 *
 * @author yanwe
 * createTime 2017-12-2017/12/8 10:07
 */
public class BankCardVerifyParam {

    /**
     * 身份证
     */
    private String identity;

    /**
     * 姓名
     */
    private String name;

    /**
     * 银行卡号
     */
    private String bankCardNo;

    /**
     * 银行预留手机号
     */
    private String phone;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBankCardNo() {
        return bankCardNo;
    }

    public void setBankCardNo(String bankCardNo) {
        this.bankCardNo = bankCardNo;
    }

    public static final class BankCardVerifyParamBuilder {
        private String identity;
        private String name;
        private String bankCardNo;
        private String phone;

        private BankCardVerifyParamBuilder() {
        }

        public static BankCardVerifyParamBuilder aBankCardVerifyParam() {
            return new BankCardVerifyParamBuilder();
        }

        public BankCardVerifyParamBuilder withIdentity(String identity) {
            this.identity = identity;
            return this;
        }

        public BankCardVerifyParamBuilder withName(String name) {
            this.name = name;
            return this;
        }

        public BankCardVerifyParamBuilder withBankCardNo(String bankCardNo) {
            this.bankCardNo = bankCardNo;
            return this;
        }

        public BankCardVerifyParamBuilder withPhone(String phone) {
            this.phone = phone;
            return this;
        }

        public BankCardVerifyParam build() {
            BankCardVerifyParam bankCardVerifyParam = new BankCardVerifyParam();
            bankCardVerifyParam.setIdentity(identity);
            bankCardVerifyParam.setName(name);
            bankCardVerifyParam.setBankCardNo(bankCardNo);
            bankCardVerifyParam.setPhone(phone);
            return bankCardVerifyParam;
        }
    }
}
